﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="SoekPerson"
    targetNamespace="http://wscf/WS_0001_Person/v1"
    elementFormDefault="qualified"
    xmlns="http://wscf/WS_0001_Person/v1"
    xmlns:types="http://wscf/Common/Types/v1"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
	<xs:import namespace="http://wscf/Common/Types/v1" schemaLocation="..\wscf.lightblue.Test.Common\Common.Types v1.xsd" />

	<xs:element name="FindPersonRequest">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="FindPersonParameters" type="FindPersonParametersType" minOccurs="0"/>
				<xs:element name="TestOnly" type="xs:boolean" minOccurs="0">
					<xs:annotation>
						<xs:documentation>Return static test data, don't call next provider in stack.</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="FindPersonResponse">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Results" minOccurs="0">
				<xs:complexType>
					<xs:sequence>
						<xs:element minOccurs="0" maxOccurs="unbounded" name="Person" type="types:PersonType"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
				<xs:element name="Tree" type="types:SuperType" minOccurs="0">
					<xs:annotation>
						<xs:documentation>Testing object hierarchy.</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:element name="PingRequest" type="types:PingRequestType">
		<xs:annotation>
			<xs:documentation>Ping forespørsel (Ping request).</xs:documentation>
		</xs:annotation>
	</xs:element>

	<xs:element name="PingResponse" type="types:PingResponseType">
		<xs:annotation>
			<xs:documentation>Ping svar (Ping response).</xs:documentation>
		</xs:annotation>
	</xs:element>

	<xs:complexType name="FindPersonParametersType">
		<xs:sequence>
			<xs:element name="LastName" type="xs:string" minOccurs="0"/>
			<xs:element name="FirstName" type="xs:string" minOccurs="0"/>
			<xs:element name="PhoneticSearch" type="xs:boolean" minOccurs="0"/>
			<xs:element name="Age" type="xs:int" minOccurs="0" />
			<xs:element name="Gender" type="types:Gender" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>

</xs:schema>
